class Termin < ActiveRecord::Base
  
  validates_uniqueness_of :date_begin
  
  def validate
    if date_begin < Time.now
      errors.add("Termin zu früh")
    end
  end
end